Web Applications with Javascript or Java by Gerd Wagner Mircea Diaconescu

Web Applications with Javascript or Java by Gerd Wagner Mircea Diaconescu

Author:Gerd Wagner, Mircea Diaconescu
Language: eng
Format: epub
Publisher: De Gruyter
Published: 2021-02-23T14:11:50.268000+00:00


8.1

Make a JavaScript Class Model

The starting point for making our JS class model is an OO class model with derived inverse reference properties like the one discussed above, which we present here again, for convenience:

Notice that the model contains two derived inverse reference properties: Publisher::/publishedBooks and Author::/authoredBooks. Each of them is linked to a master property, from which it is derived. Consequently, each of them represents a pair of mutually inverse reference properties corresponding to a bidirectional association.

Compared to making JS class models with unidirectional associations, the only new issue is:

Add a «get» stereotype to all derived inverse reference properties, implying that they have an implicit getter, but no setter. They are implicitly set whenever their inverse master reference property is updated.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.